Ext.define('PCD.view.LoginWindow', {
    extend: 'Ext.window.Window',
    xtype : 'loginwindow',

    requires: ['Ext.form.Panel'],

    title:"登录窗口",
    layout:"fit",
    autoshow:true,
    width:300,
    height:120,

    modal:true,//模式窗口
    closable:false,//不能关闭
    
    initComponent: function() {
    	this.items = [{
    		xtype:"form",
            //padding:"5 5 0 5",
            border:false,

            items:[{
                xtype:"textfield",
                name:"xm",
                allowBlank: false,
                emptyText:"请输入用户名",
                blankText:"必填",
                fieldLabel:"用户名"
            },{
                xtype:"textfield",
                name:"password",
                emptyText:"请输入密码",
                blankText:"必填",
                inputType:"password",
                allowBlank: false,
                fieldLabel:"密码"
            }]
        }],

        this.buttons = [{
            text: "登录",
            action:"login"
        },{
            text: "重置",
            action:"reset"
        }],

        this.callParent(arguments);
    }
});